package com.hzw.saas.web.admin.sys.param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import com.hzw.saas.common.util.AccountValidatorUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 忘记密码参数
 *
 * @author zzl
 * @since 01/03/2021
 */
@Data
@ApiModel(value = "忘记密码")
public class PwdForgetParam {

    @ApiModelProperty(value = "手机号", position = 1)
    @Pattern(regexp = AccountValidatorUtil.REGEX_MOBILE_OR_BLANK, message = "手机号码格式不正确")
    private String phoneNo;

    @ApiModelProperty(value = "邮箱", position = 2)
    @Pattern(regexp = AccountValidatorUtil.REGEX_EMAIL_OR_BLANK, message = "邮箱格式不正确")
    private String email;

    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value = "新密码", position = 3, required = true)
    private String password;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码", position = 4, required = true)
    private String verifyCode;

}
